Cython code for forest fire algorithm (findNeighbors_C)