created cachematrix program, saved cachevec also