tabusearch: add logging and optimisations