Ported largest-squareish-* interface to Cython