Added functions for multivariate stratification.