Added Code for cacheMatrix.R

This is the code (cacheMatrix.R) provided for the programming peer assignment.