Got the basic functionality to work. No multithreading.
I also still need to sort the vector.