finds two missing elements for O (log (N))