updated the solution to cachematrix.R file

Added the assignment's solution to the repository