Chicory,ham and Gruyère au gratin