Completed the cachematrix.R to assignment specifications