v1 of cachematrix.R for "R Programming" class rdpeng/ProgrammingAssignment2