K Balanced Binary Tree Example In Java