edited the cachematrix.R file as part of the programming assignment