2.2.2 sumsqrs (2 versions)