Switch to binary search tree for symbol lookup (simplifies api)