Update cachematrix.R

first batch of tested functions