what 2 groups held top position in ottoman society