Added extra checks at the end of SA to compare the best partition and energy.
Added extra checks at the end of SA to compare the best partition and energy.

whitergh/brainx,jrcohen02/brainx_archive2,nipy/brainx,stefanv/brainx