matrix cache implemented
matrix cache implemented