A discrete resampling technique to correct for Doppler effect in continuous gravitational wave search