Implement arithmetic, `min`, and `max` on cartesian indexes

These allow many more algorithms to be written
Merge pull request #9287 from JuliaLang/teh/cartesianarithmetic

Implement arithmetic and `min` on cartesian indexes