ternary search
1