Reshaped Sequential Replacement algorithm: an efficient approach to variable selection