Added several utility classes

AlternatingIterator, PerfectTreeIterator and RecursiveIterator classes are created; PerfectNaryTree deleted because it kinda sucked.