Fast Agent-Based Simulation Framework with Applications to Reinforcement Learning and the Study of Trading Latency Effects