binary search for cp3