Replaced `TreeMap` with `PriorityQueue` use to streamline code and optim...

...ize mem footprint

Alike transformation should be performed with `EnvelopeRoot` IMO.
Although Oracle's implementation of the PQ isn't "permissive" enough to make such a replacement.

Good work by the way!