add base class for segmenter and part_of_speech_tagger, change libmilkcat.cc