merge sort formatting