Bayes Classifier for Digits