circuit tree design