tweaked merge sort with guards instead if conditions.
added main type and prefer function call instead backticks operator.