added implementation for makeCacheMatrix and cacheSolve.