change the sparse vector generator to sprandn, it is working. But I
still need the random walk simulation. Got to figure out why it is
not working.