changes made to get rid of history storage
changes made to hisotry storage in rayopt staryop and two opt