MATLAB wrapper for Boykov-Kolmogorov min-cut/max-flow algorithm