cachematrix.R

Job done!