Test Katex script with Theta(lgn)