Added merge step to fit()

Needs to be actually implemented