source code for enumerating permutations avoiding the 1324 pattern,
as described in 
  On 1324-avoiding permutations
  Andrew R. Conway and Anthony J. Guttmann