Dynamic control of legged locomotion via a combined use of Learning and Variable Structure Techniques