Moved search traverse to separate file
The modified hevristic