Completed solutions for makeCacheMatrix and cacheSolve