add first implementations of heap functions, with test for make_heap and sort_heap.
Implemented tests for pop_heap and push_heap, and fixed some bugs found.