Added binary heap variants for min and max