Adaptive learning by extremal dynamics and negative feedback | Synapse