From algorithmic trading to AI-powered risk assessment, the machines are taking over finance. What it means for markets and your portfolio.