fixing Brent solver which did not work with Y_AXIS criterion (because after some point it always stepped by xAcc1 and ended up looping indifinitely on the same values.)