completed algorithm, version 1.0.0, travis build.