Added algorithms
Tkiner
made changes
Removed recursion