WIP: ligand_factory

also add sparse_hash and segmented hash profile test