Added methods Iterator and CompareTo