fixed errors in cachematrix.R and adding testscript jpeg