R Programming, Assignment 2, Matrix Inversion Caching