clrs; problem 9.1 - largest i numbers in sorted order
clrs; problem 9.2 - weighted median