finish 'cachematrix.R' and update it