modified touhour sort