assignment 2 - edit cachematrix

edited cachematrix.r file