Discourse Processing of Dialogues with Multiple Threads