Make hilbert operate along columns of multidimensional arrays