Updates to cachematrix.R shell functions for Programming Assignment 2