d-ary heap is ready, optimized and tested.