Binary Distillation

Source code avaiable here.