Common: add value to prior queue, PeekMaxItem impl