Implemented stocks and flows in tranche cash flow.

Using it in waterfall calculation and separating accrue and calculation for Junior Fees and Interest
Relates to #172
Relates to #88