High level decomposition for bipedal locomotion planning