merge sort implementation

implemented merge sort algorithm