residuals function

Calculate the residuals given a forecast matrix and the observations.