Revised program, reduced complexity
Merge branch 'master' of https://github.com/mmscibor/DSA-Project1
Revised code