file changes

changed the file cachematrx.R so that I can submit my assignment