Added the maxSquaredDiff sample