Explain how you would implement a basic algorithm to classify financial transactions for Farallon Capital Management.