Learning the Subsystem of Local Planning for Autonomous Racing