Added code for doing bottom-up merge sort