Fixed incorrect calculation of matrix in makeCacheMatrix function