Submitting cachematrix.R as per assignment instructions