Update cachematrix.R

handles the creation of a matrix object which includes the calculation and caching of an inverse matrix