Not using desired algorithm but it's as close as I can get
Merge branch 'master' of https://github.com/stuycs-apcs-z/hw