added scala LinkedList and mergeSort