priority_queue: add __contains__ method (#3)