Optimal reference trajectories for walking and running of a biped robot | Synapse