added a DML_GenOrthonormalBasis function