Csm: a genetic classifier system with memory for learning by analogy