cachematrix.R file containing the 2nd programming assignment