Added code and comments to the cachematrix.R file for the assignment.