I looked at the heroes' skills and believe that a library is absolutely necessary for merging (half of the heroes initially have water and fire, while their main magic schools are earth and air). And it wouldn't hurt the Dark Gnomes either (they have a 10% chance to learn each school of magic).
I already created a table of spells with three additional spells (there aren't any in the first version).
All spells tied to one skill have a colored background, so you can suggest your own options on how to arrange the uncolored spells