As the Doctor is a time traveller he does indeed meet himself every so often (often, by coincidence, in anniversary and Christmas episodes). I believe the episode you're referring to is "The Day of the DoctorThe Day of the Doctor" which recently aired with Doctors 10 and 11 as well as the "War Doctor".
This however is not an uncommon premise. There have been quite a few episodes which contain more than one doctor (usually anniversary episodes). The most famous of these have been "The Three DoctorsThe Three Doctors" and "The Five DoctorsThe Five Doctors".
In addition there was an episode called "The Next DoctorThe Next Doctor" in which we were led to believe we'd met Doctor 11 (this was before Matt Smith had been announced).
Finally all 13 appear (some via TV trickery) in "The Time of the DoctorThe Time of the Doctor".
You can see a complete list of multi-doctor stories herehere.