Programming Assignment 2: cachematrix