add #include <algorithm> to src/pygraphillion.cc