Class to partition example collection. This is used by cross vallidation