Short-term Cognitive Networks, Flexible Reasoning and Nonsynaptic Learning