Adds distance order calculations
Adds bucket indexing un routing table
fix segfault