Create cachematrix.R

cachematrix.R for programming assignment 2