Merging of Dirac points in a two-dimensional crystal