Fixed classification_accuracy() to handle stopping at inner nodes due to bottom-up pruning