Implementation of Merge sort using Threads