v2 - Edited copy of cachematrix.R