Stable Upright Walking and Running using a simple Pendulum based Control Scheme