The Deeds of Speed: An Agent-Based Model of Market Liquidity and Flash Episodes