Add compareTo method for TimeStamp and TimeStampedMessage.