format change according to sklearn.
save unnecessary memory usage.
Merge pull request #13 from csytracy/master

Format change and saving memory.