Add the algorithm described in the readme.md.