Heap data structure realization