First-fit decreasing algorithm