Replaced the stub with the actual code for functions makeCacheMatrix and cacheSolve