I will try something new in here to fix a shared memory problem
New implementation of sarsa computing the neighbors of a state to create the boundaries of the subproblems