First copy of cacheMatrix.R

Based on R. Peng's makeVector and cachemean functions