added first version of cachematrix.R