Add types for the binary tree solution
Use the record syntax for Tree