An interactive two-level architecture for a memory network pattern classifier