Calculating SST (Total Sum of Squares)