Improvement algoritmo merge