ADD early stage of shuffle algorithm