Sparse array function (for blur test)

Does the same things as MATLAB's sparse command