Fixed a bug in the method setValue of the class of SparseMatrix