SPARK-1216. Add a OneHotEncoder for handling categorical features