adds makeCacheMatrix and cacheSolve function