Revert "Going back to Deque for the time being"

This reverts commit 8c8489aff8ab05ee2dcb0cebd1c75548ffe810b2.
Syncing up to the new tex backend correctly