colorResiduals function

Calculate squared residuals for color centers