Synthesis and biological evaluation of some nitrogen containing five and six membered heterocyclic compounds