Smaller amount of intermediate data is produced while counting neighbors of each point