Update cachematrix.R

Created R script for Assignment 2