Kth Smallest Element in a Sorted Matrix — CaffeCode