rscentrality2: performance optimizations