first commit completed cachematrix.R