Implement Heuristic and A* search comparators