Classification with Rejection Based on Cost-sensitive Classification