Exploring Selectivity In Nonenzymatic And Enzymatic Dna-Templated Ligation Reactions