which civilization was the first tp build an irrigation system of ditches?