Removed data dependency
Removed data dependency and added check test. Completes merging algorithm. fixes #21
Added compute similarity function. fixes #22
Updated function comment