Kth Smallest element in a matrix | Leetcode #378