this is the half-done code that I should convert to a multithread one. I need to read from the global 2d double variable "vector" in all my threads. so