Fixed the heap implementation and renamed the exploration optimiser.