Make trees and tree pointers constant