A consensus-based model for global optimization and its mean-field limit | Synapse