using queue to store the node of the binary tree