compile fine but a bug
added merge sort