copied code of SplayTree into Heap, to reduce dependencies