Binary tree diameter