Added pthread version. OpenMP version has a bug of bucket hashing. Fixed by arbitrarily setting the index to 0 or nBucket - 1.