GOOD POINT FOR ROLLBACK: Algorithms works completely

- some bugs detected
- code structuring needs to be done and etc.
- algorithm running complexity needs to be checked.