Functions to solve (and cache) inverse of matrices

Done & done.