Synthesis of heterocyclic compounds of biological interest: Ring transformation in oxazole, imidazole and thiazole series