It's a monstrous solution that traverses the waste stick multiple times per unit of output. I'm sure there are more space and cycles efficient ways to do this but that's the build order I found. Even with OMClone and a known algorithm, implementing a solution like this is obnoxious. I didn't have it in me to start over.