First Commit

This implements the caching matrix.