Pattern recognition and associative memory as dynamical processes in a synergetic system