Adding cachematrix.R; completed first version.