Replaced Cython ndarray declarations with memory views in wavefd