Towards swarm calculus: urn models of collective decisions and universal properties of swarm performance