What class of people inherited status during the Mamluk Period?