Create cachematrix.R

Had to copy/paste from local because of git error 403 Forbidden :(