Heuristic and exact solutions to the inverse power index problem for small voting bodies