# I developed this concept, and it works just fine, but now I want to implement threading and I don t have much of a clue on how to manage this, since 1. The avalable memory Stack is not sorted and the struct array is constantly creating new elements