A Stochastic Approach for Selective Search Algorithms