added file joining algorithms that is not currently working