Compressed sensing simulation code