Added some memory management to carbonFlowMap and RiverModel