This function normalizes the the input vector v by dividing its L2 norm (Euclidean norm).
Useful links