implement parallel binary cws method