Solving the norm of a vector