COMPAT: make NeighborsHeap compatible with numpy 1.3
COMPAT: make NodeHeap compatible with numpy 1.3