Template recognition and chain elongation in DNA synthesis in vitro