Real-Time Motion Planning in Autonomous Vehicles: A Hybrid Approach