Modified the heap, Removed implementation errors; Added an example program