save space complexity on level order traversal