Evolution of somatic hypermutation and gene conversion in adaptive immunity