implement fdja_merge(), closes gh-4