An R Package for Optimal Classification