completed migration from js-algo
v0.0.2