finished basic heap implementation, fixed some bugs, added the code for programming assignment 6