An attempt to measure social stratification and changes in terms of social distances