Added a new example.

This new example is for a micro-optimization question posted to Stack
Overflow.