Sorting Algorithm Using Python