TRAJECTORY, a vector synthesizer, for GRAINS