Function normsq

Return the Euclidean norm squared of the vector v.