This is CPU version of Sebastian Lague implementation.
Project has different folders for CPU and GPU implementations, you can check both.
Original video - https://www.youtube.com/watch?v=bqtqltqcQhw
Original repo - https://github.com/SebLague/Boids/