[MRG+1] Sparse paramater to OneHotEncoder

i have added a few lines of code in data.py and test_data.py to add a sparse parameter.
i haven't made much commit messages since all the tests are same as before but have been tested with sparse=False