Create cachematrix.R

The solution for Assignment 2.  This file contains two programs to manage the cache for a matrix and its inverse, and to retrieve or set the matrix or its inverse from cache, and to calculate the inverse if necessary.