some refactoring
Merge branch 'master' of github.com:deyl94/TPalgorithm