implement algorithm
Merge branch 'master' of https://github.com/mackeyzheng/adbthree