Check if a binary tree is symmetric.