Development of new synthetic methodologies for the synthesis of n aryl amides and nitrogen containing heterocycles