implemented makeCacheMatrix and cacheSolve functions.