Replaced element-wise Squaring with 'sumsq'