Pattern Matching In Machine Learning