normalizes a vector to unit length
normalize.vector(v)
v
normalized vector
This is an auxiliary function.
Nicole Kr"amer
v<-1:5 w<-normalize.vector(v)