Add a test for sorting sigma-algebras.
Convert len_cmp -> lexico_key.
Merge pull request #29 from chebee7i/lexico_key

Use key instead of cmp for sorting.