Studies on green synthetic methodologies for the construction of nitrogen containing heterocycles and useful building blocks