Add functions for mapping from 1D coordinates to 2D coordinates with row-major order.
Merge branch 'master' of https://github.com/alessandro-gentilini/Binary-graph-cuts