Added simple classical decomposition code (ala B&D, 2002).