Update cachematrix.R with solutions to assignment3