Modify cachematrix.R for readability