binary min/max heap array