added heaps O(n) and O(1) HW41 and HW42