Mathematics of bioinformatics