Sorted lists iteration 9 - rebased

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>