Rearrangements in the Course of Nucleophilic Substitution Reactions