working backtracking (recursive) algo when dict size is small
removed unnecessary variables, prepared backtracking script for debugging