Added Mean Squared Difference similarity measure