beginnings of the flocking alg