Avoid memory issues in subsref on huge sparse matrices
Performance for large matrices
Removed dead code