add method to check that is_heap method works. verified using heapq library. heopfully that libray is correct.