N-Point Functions of Two Dimensional Yang-Mills Theories in Riemann Surfaces