Cache structure and Compare cache

Trial in matlab,...
not far in the Conversion process