Updated version of cartpole now supports any number of poles! The math now follows closely to Gomez, 2003 thesis, and so is much easier to follow.