"Programming Assignment 2"

My changes to cachematrix.R to complete Programming Assignment 2.