Implementation of A* Search Algorithm in iOS