bugfix in euclidian heuristic
we now use a heap instead of sorting hella shit each iteration