Implement classify_one_vector.