R Programming assignment 2

cachematrix.R file for R Programming assignment 2