completed R file for assignment2

This file makes Matrix inversion more efficiently by caching the
inverse of a matrix rather than compute it repeatedly.