add: relation's dequeue and empty, now the queue can push and pop
add: general RelationQueue filter, also restructured the previous (dummy) interface. impr: assertions in RelationQueue functions, forgot to include them.