unwrapped PrefixNode into array ; tinkered with using a binary search