Minimum Sum of Squared Difference