Optimal portfolio selection as a Bargaining game