random4() -> random6()
find the maximum k-th element in sorted matrix