Initial solution for the assignment with the cached inverse matrix
implemented.