pub fn normalize_vector(vector: &mut [f32]) -> Result<()>
Normalize a vector to unit length (in-place)