Use Cython memoryviews