A java implementation for the A* algorith