commit algorythm study