Updated with a less redundant algorithm
Merge branch 'master' of github.com:stuycs-apcs-z/hw