My first edit of cachematrix.R