external sort: merge k sorted arrays
find rank k element
Chapter 9