First commit of changes to cachematrix.R

Changes made to complete the Programming Assignment 2