tidy_flows function

Build a tidy table with the flows for each iteration