finished

finds and stores the inverse of matrix into cache