Genetic control of inflorescence architecture in legumes