Heap implementation for CS 1332