Consecutive patterns in restricted permutations and involutions