buckets must be grouped by distance from node id, fix inserion in full bucket, bug fixes