FIXED: forgot to cdef numpy arrays in BFS_matching