Added permutatoin comparator