added stuff for max_heapify_d

note tested yet.