Fix the binary heap