underscoring module globals
moving best_tol logic to compare_arrays