Mathematics of Decisions, Elections and Games