added algorithms, made back work on a stack, other changes
Merge pull request #3 from GeoffreySangston/master

added algorithms, made back work on a stack, other changes