Function returning normalized vector and norm

Why?