Modify argument in "generate.linear.R"

Change argument "output" to a list.
Enable output in sparse format.

Modify "generate.linear.test.R".