What language branch did Catalan share a history with?