Implement method for Part 2 Assignment 6

Implement checkHeap() and edited test class.