Mergable_heaps homework