Coordination of leg movement in walking animals