This MR is passing arrays by ref instead of value.
I also noticed that a block of code seems unused (calls to
blkOutAB), and where I suspect the arrays should be passed by reference not by value (else it seems to me
blkOutAB is doing nothing).
Tagging @ctosciri and @serodrig to clarify the intended behaviour.