A Self-organizing Associative Memory System for Control Applications