Mechanisms of DNA variation