Here is the first version of the cachematrix.R file implemented to meet the requirements of Assignment 2.