What did ancient Egypt have in common with Sumer?