Faster, leaner GMM code