here is a code of BST Query operation