First version of backtracking algo:
- refactoring
- added 1 unit test case