what is a unit vector used for