Smith_Waterman algorithm implementation of similarity matrix calculation in a sequential way!