This is a helper function for the bootstrap test. It computes the t-statistic in a fast way.
compute_t(x1, x2)
x1
the first sample.
x2
the second sample.
the Welch's t-statistic.