bug fix to cython code, had to change pointer type from int to size_t