Learning classifier systems with memory condition to solve non-Markov problems