moving basic algorithm to lib
Merge branch 'master' of https://github.com/TinyFrog/CodeBox