Add sparse codes

Any one who has comments, especially regarding the guide?