Synthesis, characterization and biological studies of heterocyclic macromolecules and its transition metal complexes