add sparseMatrix code in chapter4