completed the two functions in cachematrix.R for programming assignment2