Add sparse dataset for lib test.
Support sparse input.