Wrote makeCacheMatrix and cacheSolve.