Edited cachematrix.R file for programming assignment