initial

basic version of inverse matrix caching