Equal operator for SubjectData

Needed to compare SubjectData and the default didn't work well, added a compare operator.