Merge pull request #24 from ryaninhust/master

fix algorithm
fix a bug
Merge branch 'master' of https://github.com/Krazylee/nox