>Just to be sure my approach is good and actually this is way how search with binary tree is implemented?
If you have some reading time, I've written a basic binary search tree tutorial in the FAQ. It should help to solidify what you already know and help you build confidence in your code.