what civilization was the first to build an irrigation system of ditches?