CTCI 18.3 pick m randomly from n numbers