First Fit implementation