Switch to put trials along first dimension

This is measurably faster and also simplifies some of our code (but
makes jackknifing a little more complicated)

Also start implementation of two input jackknife