A Computational Model of Learning and Memory Using Structurally Dynamic Cellular Automata