Hide the heap structure implementation

Encapsulate the implementation.