Dot

Added dot function for sparse matrix.
`_structured_grad` -> `structured_grad`