Update cachematrix.R

Assignment 2 from cpkrish123@gmail.com