2 ms·I would use one of the tree implementations in java.util. You may have heard of it.by ljw1001 11y agoI would use one of the tree implementations in java.util. You may have heard of it.