Algorithms for next generation sequencing data analysis