written functions for makeCacheMatrix and cacheSolve.