added max and min edge heaps