Conditional allocation and stopping rules in bayesian pattern recognition.