Programming Assignment 2 Cache Matrix

Filled-in functions and provided comments for documentation.