Email Record: The evolution of distributed sensing and collective computation in animal populations