Binary Search, Selection and Heap questions