Lexical Scoping in R for storing result of Matrix inversion