kd-tree version, up to 5000 boids, real-time