Added the controlled n pendulum example.

I just moved these files from the idetc paper repository to here.