Update cachematrix.R

Two functions for Programming Assignment2