Multidimensional voting models: theory and applications