first-fit implemented but not quite correct