Implement a weighted TB algorithm that will result in passing the similarities back in time.
Implement a weighted TB algorithm that will result in passing the similarities back in time.