Participatory budgeting algorithm