change of PA2

change the cachematrix.R to implement the functions