Synthesis of nitrogen containing heterocycles by selenium cyclization. Pyrrolidines and Pyrrolizines.