Flocking algorithm as master thesis. Algorithm uses Octree optimisiation as well as frame reduced computing