Backtracking Algorithm

Fixed and issue created a new matrix output: self.output_matrix and
replaced self._input_matrix this fix help to save matrix solved in
different matrix and not in the same first matrix.