new blocking algorithm for npudistbw