Fixed the comparator for relations

Also, forgot to mention in previous commit that I added 3 functions to
Relation. They are:
operator==
operator!=
get_header