Let's find distances between N points. Via flood fill, which explains why the starting points on the left fill faster than the ones on the right.