Added mex to nLinkPendulum, added a new example