Vectorizing party vote assignment in election2012