initial commit - cache inverse of matrix