Programming Assignment 2 MatrixSolvingCaching

2 functions for solving a matrix and caching the result