Replaced search with a data structure in det move update. Fixed bug in the energy estimator