Update cachematrix.R to include assignment2 solution