Created implementation of merge method.
Added IllegalArgumentException.

Creada a implementación do método merge.
Engadida IllegalArgumentException.