Calculating Total Sum Of Squares