Removed the class constraints from Heap.