Update cachematrix.R

committing completed assignment