added indmax,indmin,findmax,findmin for sparse matrices.

fixes #7577
Merge pull request #7578 from tanmaykm/tanmaykm

added indmax and indmin for sparse matrices.