Basic implementation of a heap operators.

WIP: implement a Heap interface.
It ain't pretty a pretty heap, but it's done.