binaryheap for nodejs that can be efficiently extended and shrinked as needed