Efficient Pattern Recognition Using a New Transformation Distance