added d_ary_heap for Problem 6-2.