Fixes in accum_dist methods

accum_dist and operator() have to calculate the same way.
Fixed, assuming that operator() have the right code.