A computational study of team collaboration and performance