modify:reorganize josephus problem,two types of structure