Completed caching assignment for inverse of matrix