fixed slight error in compareTo in the new knowledge types. The error resulted in sometimes for example HeuristicKnowledge wouldn't use the smallest dist as the Heuristic.