Move methods heapify() and test_heapify() to bottoms of their files.