Added printing methods for Stack and Heap.
Merging.