Scalable and accurate algorithms for computational genomics and dna-based digital storage