public static void main(String[] args) {
        MergeSort m = new MergeSort();
        int[] test = {1, 3, 8, 2, 10, 2, 3, 4, 6, 9, 878, -1};
        for (int i : m.sort(test)) {
            System.out.print(i + " ");
        }
    }