Synthesis of nitrogen containing Heterocyclic Compounds and evaluation of their Anti diabetic and Anti cancer activities