Simple Combinatorial Pattern Recognition