Flocking implementation in dart.