Binary Tree Search Algorithm Python