Finished cacheMatrix.r script

Both functions are functional.