Programming Assignment 2 modifications to cachematrix.R