Toolkit for recursive partytioning
