common: pointsAlongVector, insertGroup and align