permutations changed from 10000 -> 1000

Fixes #183