Preservation code optimised. Permutations increased to 300