Binary Search Tree Implementation Using Array In Javascript