Added initial implementation of max-flow solver