Changed the int**s to Trees for more clarity.