Multivariate partitioning