Merge sort algorithm using haskel