[mod] switch to final attributes for Pair
[fix] set position when adding node to updatable heap