added a minmax heap with only O(n) contains time