fix bugs. refactor. start implementing local search generally
fix bugs. fix local search general