adding nbt_permutationtest from NBTdev