follow http://wiki.cython.org/DynamicMemoryAllocation in affinegap