Code

refs: Use binary search to lookup refs faster