logN solution to finding missing arithmetic sequence