Add the algorithm of counting different between 2 segmnets in 2d