adding find the kth element in sorted matrix O(klogk)