correctly handle eigenstate prediction at the ends when changing directions
correctly handle eigenstate prediction at the ends when changing directions

simple-dmrg/sophisticated-dmrg,hariseldon99/sophisticated-dmrg,simple-dmrg/sophisticated-dmrg