Simplified functional nature merge sort as a general case for bottom up merge sort