Functions

[Generic] A* shortest path algorithm.