updated makecachematrixfile