An Improved Charged Particle Track Reconstruction Algorithm for the Micromegas Detectors of the New Small Wheel for the ATLAS Experiment at the Large Hadron Collider