cachematrxix.R from Assignment 2 submitted