added different number of samples for quadratic time MMD