Added simple uniform interface using function templates.

Explained more succinctly that I'm using a type of functional pattern
matching using template specializations. A form of functional pattern
matching will likely find its way into the new C++ standard.