A numerical algorithm to model wall slip and cavitation in two-dimensional hydrodynamically lubricated contacts. (June 2023)