Added distsq function
added magnitude function (alias for len), clamp function and removed an old call to normalize_inplace