Melamine and cyanuric acid form a jigsaw puzzle-like two-dimensional hydrogen bonding network because of the complementarity of the two compounds, similar to DNA base pairing.