Update cachematrix.R

final version