Refactor and clean up Level Order traverse