add inverted pendulum example

This file calculates the response to an inverted pendulum model subjected
to an impulsive input.