Updated makecachematrix and cachesolve functions