Iterating over sets of pointers in a heuristic was a bad idea. Switching