readded samuels nextFit implementation