Algorithms for analyzing genetic variability from Next-Generation Sequencing data