added pqueue module with type declaration