Metalearning: Sparse Variable-Structure Automata