Palladium Catalyzed Synthesis of Functionalized Heterocycles: Application of palladium catalyst