Fix nested set algorithm
Added: populate teams into nested set leaves