Reworked sync_pq to be able to use different comparators and containers for the underlying pq.
Added basic single threaded tests.