Retouched max flow / min-cost max flow code and added some solutions