Kth Smallest Element Heap Leetcode Question