first cut at assignment

cache and retrieve matrix data