bugfix, added cumulative diff new algo
fixed unit tests