Implement pair search policy example using boost coroutine