Update pow(n)

binary find the result