halving step length in volume minimization and distance checking function