heaps: correctly size the data vector for >min-heap and >max-heap.