Edit cachematrix.R

Added my code to the file.