Transition PyBayes to use Cython memoryviews instead of NumPy arrays

TODO: work with Cython 0.18 without custom patches
Port stress testing to unittest, happens in build directory now