Fixed setComparator/reheapify