Implemented TreePartition::toString() method