Iterative stratification
Implemented from the algorithm explained in:
Konstantinos Sechidis, Grigorios Tsoumakas, and Ioannis Vlahavas. 2011.
On the stratification of multi-label data. In Proceedings of the 2011
European conference on Machine learning and knowledge discovery in
databases - Volume Part III (ECML PKDD'11), Dimitrios Gunopulos,
Thomas Hofmann, Donato Malerba, and Michalis Vazirgiannis (Eds.), Vol.
Part III. Springer-Verlag, Berlin, Heidelberg, 145-158.