Update of cachematrix.R from course sample file to project submission final version