I have replaced all the vectors with arrays. Vectors are not threadsafe.
Still the program can only find upper hull in a sequential manner.