Flux Map and Multimap

Converted the Flux map to a multimap. The multimap groups fluxes
according to states and is passed by reference so that states can change
eachother's flux values.