add nonrecursive function
Merge branch 'master' of github.com:deyl94/TPalgorithm