java program.Demonstrates different kinds of tree traversals using data stractures.