[algs] Use universal references for hb_pair()

Such that it carries lvalues inside.
3 files changed