Cython adapter for Bo Haglund's double-dummy solver.