splitfactor function

Split and Unsplit Factors into Dummy Variables