A distributed flocking simulation