the early ptolemies kept it in order and fostered the development of its museum into the leading hellenistic center of learning ( library of alexandria ) , but were careful to maintain the distinction of its population 's three largest ethnicities : greek , jewish , and egyptian .