Algorithm for Bio-Informatics