Add a O(log(m+n)) solution