First cachematrix.R

First cachematrix.R for Programming assignment 2