improved ticks intervals algorithm