making the TreeRouter completely thread-safe by making the add() method synchronized