Make segments using vectors as input