cachematrix.R

My assignment 2 solution