Studies on the palladium and copper catalysed synthesis of some functionalised carbocycles and heterocycles