Replacing DHT by custom logic

Hello everyone, I am trying to replace the Kademlia DHT logic from IPFS to implement my own algorithm for research purposes. Can anyone assist me in how can I go about doing this?