finished Max and Min heaps