INF1010 oblig 6 search with threads