Balanced Tree solution