Binary Heaps implementation for Blitz3D