Optimizing Leg Distribution Around the Body in Walking Robots