fixes #2 added merge sort