Merging by Matching Models in Task Subspaces