Ford fulkerson algorithm in java