fixed r2, adjusted r2, and multivariate r2 calculations, ready to fix the optimizer next