MATLAB wrapper to the max-flow/min-cut algorithm by Boykov and Kolmogorov