Boosted up our algorithm

Boosted up our algorithm