make the classifier return some more structured result (a record with a prediction, and the list of distances for each number)