Dot

Added dot function for sparse matrix.
0-indexed.