Created an insert() method in node, refactord the heap code accordingly.