differnt distance heuristic