sse function

Sum of squared errors of prediction