added cycle method to List.
Merge branch 'master' of https://github.com/malover/algorithms