Bounded rational decision-making from elementary computations that reduce uncertainty