heck... I would rather see use of vectorization. Just calculate the norm and normalize the u, v, and w arrays as vector math. Should be significantly more efficient too, as well as more readable.