Feature/shareable indexing

Singularity arises implicitly in several locations.  There is determinant function that checks the singularity of square matrices.