commit cachematrix.R 1st working attempt at both functions