Updated versions of the solver.  Added function that returns vector
of next location.