committed cachematrix.R script for the assignment 2