fixed a bug in the random initialization of mountaincar, implemented swingpendulum