Permutations now working; added tests

Also removed a spurious word from the list of short words
(smaordalisti.txt)