cachematrix.R for R Programming Assignment #2 and an R script for testing it