Integrated the Sorting list x first algorithms in python