Classification by the Maximum Path Criterion