Update cachematrix

Programming assignment 3