norm2 function

Compute the L2 norm (Euclidean norm) of a vector