add dmat.js and dtree.js