Regex: Use a custom 'DualThreadStack' structure to hold thread info
Regex: Use a custom 'DualThreadStack' structure to hold thread info

Instead of using two vectors, we can hold both current and next
threads in a single buffer, with stacks growing on each end.

Benchmarking shows this to be slightly faster, and should use less memory.

danr/kakoune,danr/kakoune,casimir/kakoune,mawww/kakoune,casimir/kakoune,jjthrash/kakoune,mawww/kakoune,occivink/kakoune,mawww/kakoune,occivink/kakoune,casimir/kakoune,alexherbo2/kakoune,occivink/kakoune,lenormf/kakoune,jjthrash/kakoune,Somasis/kakoune,jkonecny12/kakoune,mawww/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,alexherbo2/kakoune,Somasis/kakoune,Somasis/kakoune,casimir/kakoune,lenormf/kakoune,alexherbo2/kakoune,lenormf/kakoune,danr/kakoune,lenormf/kakoune,Somasis/kakoune,occivink/kakoune,danr/kakoune,jkonecny12/kakoune,jjthrash/kakoune,jjthrash/kakoune,jkonecny12/kakoune