Dot

Added dot function for sparse matrix.