creating code for functions to makeCacheMatrix and cachesolve