fulkerson list + matrix working (long but correct)