add DD functions

add DD functions (Knuth and Mese)