DUET Algorithm on MATLAB.