Using Reed-Muller Codes for Classification with Rejection and Recovery