Finds the shortest distance between two points using the A* search  * algorithm.