reorganised the internal numpy array handling such that whole-array access (mostly copying) of contiguous
arrays can be done through a single call to memcpy. The initial implementation checked for the various possible
conditions inside the loop...