Creating the Tree class, implementing the insert method