simple algorithm and tests
Merge branch 'master' of github.com:satyrius/traversal