Reshaped sequential replacement algorithm: an efficient approach to variable selection