Debugged MaxHeap class and added automatic test case generator for the
class.