implemented makeCacheMatrix and cacheSolve