Restricted permutations