Update cachematrix.R

CacheMatrix version 1 for submission