fixed bugs in ch6/d_ary_heap.h