iMac 2011 - two external monitors
I believe you would like to take a look at this Endgadget link that explains (even with a video) what you need.

If you have two Thunderbolt ports (only the 27inch iMac), then those can support two external displays (confirmed by Apple, you can google that). 

(this has been also asked on SuperUser)