Implemented new algorithm and test for GetRealisedGrossProfit method of IPortfolio.
Added GetRealisedGrossProfit calculation to the WPF UI.