Much better algorithm for computing log scale ticks.