clrs; problem 8.3 - sorting variable-length items