Implement prototypes for flocking algorithm.