Unified Classification and Rejection: A One-versus-All Framework