A treatise on the law of irrigation