add method to test for max-heap property.