Maximum likelihood reconstruction of ancient DNA fragments