Finding Hamiltonian paths in cocomparability graphs using the bump number algorithm