added TextPair and Partitioner