Yang-Mills and bundles over algebraic curves