implemented the approx ncdl of Cohen and Vitanyi