D-ary heaps for Haxe