Synthesis of Five- and Six-Membered Heterocycles Through Palladium-Catalyzed Reactions