what prompted the Egyptians to build pyramids?