R code to make Programming Assignment2 - cachematrix.R