Dot

Added dot function for sparse matrix.
The parameter is called `_structured_grad` but is used as `structured_grad` inside the function.