Given a stream of incoming transactions, write an algorithm to detect anomalous patterns in real time for The Misch Group.