Working makeCacheMatrix and cacheSolve functions