Binary tree lookup algorithm and demonstration process