mergeTradesSameTimestamp function

Merge multiple transactions with the same time stamp