Binary trees and inorder sort