Traffic Flow Optimization using Reinforcement Learning