GAMLS: a generalized framework for associative modular learning systems | Synapse