lg(n+m),findkth method