First working algorithm 'forward': try solution with different values in a certain range given by a step