Added a print function for debuggin the heap. Fixed the minheapify and createminheap functions.