cachematrix.R for R Programming Coursera course, Programming assignment 2 completed on April 8, 2014