fixed swapAllAdjacent, added tags method to TaggedSentence