3D simulation of flocking behaviour in birds