Assignment 2 R file

The cachematrix.R file contains two functions with explanatory comments
to complete the 2nd assignment for the R programming Coursera course.