Corrected the L2-norm computation.

Signed-off-by: Sam Laane <samlaane@gmail.com>