Completed Assignment 2, cachematrix.R