Feature/cumulative flow diagrams

Use `each_with_object` instead of `inject`.<br>Do not use semicolons to terminate expressions.<br>Name `inject` block params `|a, e|`.