edits to cachematrix.R for Programming assignment # 3