cacheMatrix script prepared for assessment, with comments.