developed merge algorithm. fixed divide and conquer