Pakistan elected G-77 chairman