Update cachematrix.R

final changes