Modified StringPermutation class so that it uses
FixedSimplePriorityQueue which it doesnt allocate extra memory