added merge sort
added debug