Double Selection In Algorithm