A Bayesian Classification Algorithm Based on Selective Patterns