Minimize sum of gravitational torques of some joints