Homework assignment 2: cachematrix.R