add scala implementation of merge sort