Semi-implemented multi-threaded search

It looks so hideous, like code that just rambled out of a woodland, but
it works...
What a horrible mentallity, like some sort of code monkey
MUST CLEAN THE HORROR THAT IS THIS CODE - later