Heuristic search excercise