Moved backtracking to separate module.
Added AffineGap solver.