Computes the L2 norm (Euclidean norm) of an array of values.