Calculating the norm of a complex number