added 2 functions to cachematrix.R