added js binary tree search