Removes lodash dependency

Removes dependency on `lodash` by implementing `mergeRecursive` function.