print a binary tree by level