Changed normsq to sumsq (to apply to matrices), renamed instances