first commit of calculation of inverse caching solution