Added method to compute the non-zero indices of a dense matrix.

This PR adds a new method to return the non-zero elements of a dense matrix ( similar to numpy.nonzero() ).