This is joschmoe's version of cachematrix.R for ProgrammingAssignment2